Advertisement
theitd

Magazine - Covers

Nov 13th, 2018
413
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
MySQL 0.72 KB | None | 0 0
  1. SELECT
  2.     d.entry_id,
  3.     d.site_id,
  4.     d.channel_id,
  5.     d.field_id_16 as content,
  6.     d.field_id_26 as image,
  7.     d.field_id_27 as magazine,
  8.     d.field_id_29 as leader,
  9.     d.field_id_30 as content,
  10.     d.field_id_31 as cbrne_news,
  11.     d.field_id_116 as category_title,
  12.    
  13.     t.title,
  14.     t.url_title,
  15.     FROM_UNIXTIME(t.entry_date, "%Y-%m-%d %H:%i:%s") as entry_date,
  16.     FROM_UNIXTIME(t.entry_date, "%Y-%m") as category_code,
  17.     CONCAT_WS(" ", CONCAT_WS('-',t.year,t.month,t.day), " 00:00:00") as publish_date,
  18.  
  19.     str_to_date(t.edit_date, "%Y%m%d%H%i%s") as edit_date
  20.        
  21.     FROM exp_channel_data d
  22.     LEFT JOIN exp_channel_titles t on t.entry_id = d.entry_id
  23.     WHERE d.channel_id = 5
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement