Convert SQL query to Yii Criteria Query April 7, 2022 by Tarik Billa You can try this: $data = Yii::app()->db->createCommand('Your query here')->queryAll(); var_dump($data); Browse More Popular Posts What algorithm to use to determine minimum number of actions required to get the system to “Zero” state? Native Facebook app does not open with Facebook login in iOS 9 Subclassing NSOperation to be concurrent and cancellable Python: Reducing memory usage of dictionary How can I get Apache gzip compression to work? How to zoomed a portion of image and insert in the same plot in matplotlib difference between IComparable and IComparer [duplicate] Highlight whole TreeViewItem line in WPF Bootstrap 3 Carousel fading to new slide instead of sliding to new slide PyTorch: How to use DataLoaders for custom Datasets Pasting code into terminal window into vim on Mac OS X Nokogiri ‘Failed to build gem native extension’ when I run bundle install How to set custom typeface to items in NavigationView? How can I get Wikipedia content using Wikipedia’s API? How to detect SSE/SSE2/AVX/AVX2/AVX-512/AVX-128-FMA/KCVI availability at compile-time? Laravel password validation rule How to run Google Chrome with Selenium RC? Vue – how to pass down slots inside wrapper component? Difference between r+ and w+ in fopen() Amortized complexity in layman’s terms?